//
//  PaMailDetailAuthorityCell.m
//  iOS_Router_Runtime
//
//  Created by 王水鑫 on 2018/11/1.
//  Copyright © 2018年 王水鑫. All rights reserved.
//

#import "PAMailDetailAuthorityCell.h"
#import "UIColor+ColorChange.h"

static CGFloat const authorityTipTitleFont = 12;
static NSString * const authorityTipTitleTypeface = @"PingFangSC-Regular";

@implementation PAMailDetailAuthorityCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (instancetype)init {
    if (self = [super init]) {
        self.backgroundColor = [UIColor colorWithHexString:@"#FDF9DF"];
        [self appendSubViews];
    }
    self.selectionStyle = UITableViewCellSelectionStyleNone; // 去掉点击阴影
    return self;
}
- (void)appendSubViews {
    UIImageView *authorityIcon = [[UIImageView alloc] initWithFrame:CGRectMake(20, 11.5, 14, 15)];
    authorityIcon.image = [UIImage imageNamed:@"pamail_authority_lock"];
    authorityIcon.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:authorityIcon];
    UILabel *authorityTip = [[UILabel alloc] initWithFrame:CGRectMake(39, 0, 200, 38)];
    authorityTip.text = @"邮件权限，禁止转发";
    [authorityTip setFont:[UIFont fontWithName:authorityTipTitleTypeface size:authorityTipTitleFont]];
    authorityTip.textColor = [UIColor colorWithHexString:@"#A4701B"];
    [self addSubview:authorityTip];
}

@end
